#include<iostream>
#include<string>
using namespace std;

int p[5]={0,1,2,3,4};
int a[5]={5,4,3,2,1};
//返回数组指针
int  (*test1())[5]
{
    int (*arr)[5]=&p;
    
    
    return arr;
}
//重载
int *test2(int i)
{
    int arr2[5]={231,323,23,31,3};
    cout<<arr2[1]<<endl;
    int *p=arr2;
    return p;
}
void test3(string a="hello world",int b=1)
{
    cout<<a<<b<<endl;
}
//内联函数
inline string test4()
{
    return "just a test";
}
//constexpr
constexpr int test5(int b)
{
    int a=10;
    return a;
}
int main()
{
    int (*arr1)[5];
    arr1=test1();
    cout<<(*arr1)[1]<<endl;
    cout<<(*(test2(1)+1))<<endl;
    test3();
    cout<<test4()<<endl;
    cout<<test5(1)<<endl;
   

}